package com.sdhs.costcontrol.service.impl;

import java.util.List;
import com.sdhs.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sdhs.costcontrol.mapper.GcControlPlanListMapper;
import com.sdhs.costcontrol.domain.GcControlPlanList;
import com.sdhs.costcontrol.service.IGcControlPlanListService;

/**
 * 采购计划-子-清单Service业务层处理
 *
 * @author andong
 * @date 2025-03-14
 */
@Service
public class GcControlPlanListServiceImpl implements IGcControlPlanListService
{
    @Autowired
    private GcControlPlanListMapper gcControlPlanListMapper;

    /**
     * 查询采购计划-子-清单
     *
     * @param id 采购计划-子-清单主键
     * @return 采购计划-子-清单
     */
    @Override
    public GcControlPlanList selectGcControlPlanListById(Long id)
    {
        return gcControlPlanListMapper.selectGcControlPlanListById(id);
    }

    /**
     * 查询采购计划-子-清单列表
     *
     * @param gcControlPlanList 采购计划-子-清单
     * @return 采购计划-子-清单
     */
    @Override
    public List<GcControlPlanList> selectGcControlPlanListList(GcControlPlanList gcControlPlanList)
    {
        return gcControlPlanListMapper.selectGcControlPlanListList(gcControlPlanList);
    }

    /**
     * 新增采购计划-子-清单
     *
     * @param gcControlPlanList 采购计划-子-清单
     * @return 结果
     */
    @Override
    public int insertGcControlPlanList(GcControlPlanList gcControlPlanList)
    {
        return gcControlPlanListMapper.insertGcControlPlanList(gcControlPlanList);
    }

    /**
     * 修改采购计划-子-清单
     *
     * @param gcControlPlanList 采购计划-子-清单
     * @return 结果
     */
    @Override
    public int updateGcControlPlanList(GcControlPlanList gcControlPlanList)
    {
        return gcControlPlanListMapper.updateGcControlPlanList(gcControlPlanList);
    }

    /**
     * 批量删除采购计划-子-清单
     *
     * @param ids 需要删除的采购计划-子-清单主键
     * @return 结果
     */
    @Override
    public int deleteGcControlPlanListByIds(Long[] ids)
    {
        return gcControlPlanListMapper.deleteGcControlPlanListByIds(ids);
    }

    /**
     * 删除采购计划-子-清单信息
     *
     * @param id 采购计划-子-清单主键
     * @return 结果
     */
    @Override
    public int deleteGcControlPlanListById(Long id)
    {
        return gcControlPlanListMapper.deleteGcControlPlanListById(id);
    }

    /**
     * 根据plan_id删除采购计划-子-清单信息
     *
     * @param id 采购计划-子-清单主键
     * @return 结果
     */
    @Override
    public int deleteControlPlanListByIds(Long id)
    {
        return gcControlPlanListMapper.deleteGcControlPlanListById(id);
    }
}
